﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AD.Model
{
    public enum KeyWordsStatus {
        Default = 0,
        Pass = 1,
        WaitPass = 2,
    }
    public enum SearchEngineType
    {
        Baidu = 1,
        Google = 2,
        Sogo = 3,
    }
    public class KeyWordsBaseMod
    {
        public KeyWordsBaseMod()
        {
            User = new UserMod();
            Commit_Date = DateTime.Now;
            UseUpdateDate = DateTime.Parse("1979-01-01 0:0:0");
            IsUse = true;
            Status = KeyWordsStatus.Pass;
        }
        public string KeyWords { get; set; }
        public SearchEngineType SearchEngineType { get; set; }
        public int AutoID { get; set; }
        public int UserId { get; set; }
        public DateTime Commit_Date { get; set; }
        public KeyWordsStatus Status { get; set; }
        public bool IsUse { get; set; }
        public DateTime UseUpdateDate { get; set; }
        public UserMod User { get; set; }
    }

    public class KeyWordsMod : KeyWordsBaseMod
    {
        public string AdTitle { get; set; }
        public string AdDescribe_First { get; set; }
        public string AdDescribe_Second { get; set; }
        public string AdUrl { get; set; }
        public string AdUrl_Title { get; set; }
    }
}